package com.unidt.www.module.expert.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.unidt.www.framework.mybatis.core.mapper.BaseMapperX;
import com.unidt.www.module.expert.domain.ExpertInvitationRuleDo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ExpertInvitationRuleMapper  extends BaseMapperX<ExpertInvitationRuleDo> {
    default List<ExpertInvitationRuleDo> getByInvitationId(Long invitationId){

        LambdaQueryWrapper<ExpertInvitationRuleDo> lambdaQueryWrapper =
                new LambdaQueryWrapper();
        lambdaQueryWrapper.eq(ExpertInvitationRuleDo::getInvitationId,invitationId);
        return this.selectList(lambdaQueryWrapper);
    };
}
